<?php

require_once 'models/DAL/EnderecoDAO.php';

class Application_Model_DbTable_Endereco extends Zend_Db_Table_Abstract {

    protected $_name = 'Endereco';
    protected $_primary = 'idEndereco';

    public function getALLEstados() {
        $retorno = array();

        foreach (array('AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RO', 'RR', 'RS', 'SC', 'SE', 'SP', 'TO') as $row) {

            $o = new Application_Model_DAO_Endereco();

            $o->setUf($row);

            $retorno[] = $o;
        }
        return $retorno;
    }

}

